<?php
/**
 * Description:
 *
 * @author      Eden
 * @datetime    2017/1/8 19:27
 * @copyright   WuHan HuQi Technology Co.,Ltd.
 * @url         http://cnhuqi.com
 */

class Home extends WX_Controller
{
    /**
     * 初始化
     * @throws Exception
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 首页
     */
    public function index()
    {
        $this->load->model('wx/Home/Slider_Model', 'slider');
        $res = $this->slider->getSliderLists();
        if (!$res) {
            $slider = [];
        } else {
            $slider = $res;
        }
        @statIncr('pv');
        $this->load->view('wx/index/index.html', ['slider' => $slider]);
    }
}